<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>每日消费汇总</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<script type='text/javascript' src='<%=basePath %>/dwr/engine.js'></script>
 	<script type='text/javascript' src='<%=basePath %>/dwr/util.js'></script>
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
 	<script type='text/javascript' src='js/jquery.validate.min.js'></script>
 	<script type='text/javascript' src='js/common.js'></script>
	<script language="javascript" type="text/javascript" src="<%=basePath %>/date/WdatePicker.js"></script>
 	<link href="images/css.css"  rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.STYLE14 {color: #F58000}
.STYLE15 {color: #F18910}
.STYLE16 {color: #F75200}

-->
</style>

<script type="text/javascript">

function serachMsgSubmit(){
	document.dayCxFrm.submit();
}

	//转至多少页码
	 function changePage(listId)
	 {
	 	//alert(listId);
	  document.location.href="accManagerAction!doEveryDayConsumptionList.action?pageNo="+listId;
	 }
</script>
 
  </head>
  
<body bgcolor="#F1F1F1" style="margin:0px; text-align:center;">
    
    <table width="789" height="539" border="0" cellpadding="0" cellspacing="0" bgcolor="#F1F1F1">
	  <tr>
	    <td width="789" height="39" align="left" valign="middle">
	    <span class="STYLE1">&nbsp;<a href="javascript:void(parent.window.location.href='loginAction!login.action')" class="STYLE1">我的易彩通</a> &gt; 我的账号 &gt; 账号管理</span>
	    </td>
	  </tr>
  <tr>
    <td height="500" align="left" valign="top">
    	<table width="788" height="422" border="0" cellpadding="0" cellspacing="0" style="border-bottom:1px solid #DBDBDB; border-left:1px solid #DBDBDB;  " id="a3">
      <tr>
        <td width="112" height="22" align="center" background="images/line3.jpg"  bgcolor="#FFFFFF" style="border-top:1px solid #DBDBDB; border-right:1px solid #DBDBDB; border-bottom:1px solid #DBDBDB;" >
        	<a href="accManagerAction!doMyAccount.action" class="STYLE11">我的账号</a></td>
        <td width="8" style="border-bottom:1px solid #DBDBDB;">&nbsp;</td>
        <td width="112" align="center" bgcolor="#FFFFFF"  background="images/line3.jpg"  style="border-top:1px solid #DBDBDB; border-right:1px solid #DBDBDB; border-left:1px solid  #DBDBDB">
        	<a href="accManagerAction!doConsumptionDetailList.action" class="STYLE11">消费明细</a></td>
        <td width="6" style="border-bottom:1px solid #DBDBDB;">&nbsp;</td>
        <td width="110" align="center" bgcolor="#FFFFFF" style="border-top:1px solid #DBDBDB; border-right:1px solid #DBDBDB; border-left:1px solid  #DBDBDB">每日消费汇总</td>
        <td width="7" style="border-bottom:1px solid #DBDBDB;">&nbsp;</td>
        <td width="110" align="center" background="images/line3.jpg" style="border:1px solid #DBDBDB; ">
        	<a href="accManagerAction!toLoadRechargeRecordList.action" class="STYLE11">充值记录</a>
        </td>
        <td width="322" style="border-bottom:1px solid #DBDBDB;">&nbsp;</td>
      </tr>
      <tr>
        <td height="399" colspan="8" align="center" valign="top" bgcolor="#FFFFFF" style="border-right:1px solid #DBDBDB;">
       
    <s:form action="accManagerAction!doEveryDayConsumptionList.action" name="dayCxFrm" id="dayCxFrm" method="post"> 
        <table width="772" height="75" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="16">&nbsp;</td>
          </tr>
          <tr>
            <td height="43">
            <table width="628" height="34" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="103" height="34" align="right"><span class="tj_title">请选择日期：</span></td>
                  <td width="525">
                  	<table width="408" border="0" cellpadding="2" cellspacing="0" style=" color:#666666;">
                      <tr>
                        <td width="160">
                        <input style="width:155px;border:1px solid #DBDBDB;" class="Wdate" name="beginTime" id="beginTime" type="text" onClick="WdatePicker()">
                        </td>
                        <td width="17">&nbsp;</td>
                        <td width="211" align="left">
                        	<img src="images/ck.jpg" onclick="javascript:serachMsgSubmit();" style="cursor:hand" width="42" height="21">
                        	<label><span style="color:red" id="timeSpan"></span></label>
                        </td>
                        <td width="4">
                        <a href="javascript:opendtEnd();" onclick="event.cancelBubble=true;"> </a>
                        </td>
                      </tr>
                  </table></td>
                </tr>
              </table>
                </td>
          </tr>
          <tr>		<%-- 查看按钮 --%>
            <td height="20">&nbsp;</td>
          </tr>
        </table>
      </s:form>
           
        
          <table width="766" height="120" border="0" cellpadding="0" cellspacing="0">
            <%-- 列表[标题]的展示开始 --%>
            <tr valign="middle">
              <td width="157" height="29" align="center" background="images/lm1_bg.jpg">发送时间</td>
              <td width="10" background="images/lm1_bg.jpg">
              	<img src="images/line2.jpg" width="10" height="25" />
              </td>
              <td width="212" align="center" background="images/lm1_bg.jpg">彩信标题</td>
              <td width="10" background="images/lm1_bg.jpg">
              	<img src="images/line2.jpg" width="10" height="25" />
              </td>
              <td width="141" align="center" background="images/lm1_bg.jpg">发送条数</td>
              <td width="10" align="center" background="images/lm1_bg.jpg">
              	<img src="images/line2.jpg" width="10" height="25" />
              </td>
              <td width="106" align="center" background="images/lm1_bg.jpg">发送单价</td>
              <td width="10" align="center" background="images/lm1_bg.jpg">
              	<img src="images/line2.jpg" alt="" width="10" height="25" />
              </td>
              <td width="110" align="center" background="images/lm1_bg.jpg">消费金额</td>
            </tr>
           <%-- 列表标题的展示结束 --%>
           
           <%-- 列表[信息]展示开始 --%>
           <!-- 显示数据的列表 --> 
 			<s:iterator value="pageEcaObj.data" id="msgObj" status="st">
            <tr <s:if test="#st.odd">style='background-color:#F7F7F7'</s:if>>
              <td height="30" align="center">
              		<s:date name="pageEcaObj.data[#st.index].sendTime" format="yyyy-MM-dd"/>
              </td>
              <td>&nbsp;</td>
              <td align="left">&nbsp;&nbsp;<s:property value="pageEcaObj.data[#st.index].title"/></td>
              <td>&nbsp;</td>
              <td align="center"><s:property value="pageEcaObj.data[#st.index].sendCount"/></td>
              <td align="center">&nbsp;</td>
              <td align="center" class="STYLE15">￥<s:property value="pageEcaObj.data[#st.index].price" default="0.30" /></td>
              <td align="center">&nbsp;</td>
              <td align="center" class="STYLE15">￥<s:property value="pageEcaObj.data[#st.index].consumptionMoney"/></td>
            </tr>
            </s:iterator>
			<%-- 列表信息展示结束 --%>
			
	<%-- 列表[分页]展示开始 --%>
	<s:if test="pageEcaObj.data != null">
		<s:if test="pageEcaObj.hasOnePage==false">

            <tr>
              <td height="29" align="left" background="images/lm1_bg.jpg" class="STYLE15" >
              	本日消费合计：￥<s:if test="#request.dangtianMoney != null && #request.dangtianMoney !=0">
              						<s:property value="#request.dangtianMoney"/>
              					</s:if>
              					<s:else>0.00</s:else>
              </td>
              
              <td height="29" colspan="8" align="right" background="images/lm1_bg.jpg">
	              <s:if test="pageEcaObj.pageNo==1">首页</s:if>
				  <s:else>
					  <a href="accManagerAction!doEveryDayConsumptionList.action?pageNo=1" class="STYLE5">首页</a> 
				  </s:else>&nbsp;
	              
	              <s:if test="pageEcaObj.hasPrePage==false">上一页</s:if>
				  <s:else> 
					 <a href="accManagerAction!doEveryDayConsumptionList.action?pageNo=<s:property value="pageEcaObj.pageNo-1"/>" class="STYLE5">上一页</a>
				  </s:else>&nbsp;
	
	              <s:if test="pageEcaObj.hasNextPage==false">下一页</s:if>
			      <s:else>
					 <a href="accManagerAction!doEveryDayConsumptionList.action?pageNo=<s:property value="pageEcaObj.pageNo+1"/>" class="STYLE5">下一页</a>
				  </s:else>&nbsp;
	              
	              <s:if test="pageEcaObj.pageNo==pageEcaObj.totalPage">末页</s:if>
				  <s:else>
				    <a href="accManagerAction!doEveryDayConsumptionList.action?pageNo=<s:property value="pageEcaObj.totalPage"/>" class="STYLE5"> 末页 </a>
				  </s:else>
              
	              &nbsp;&nbsp;第${pageEcaObj.pageNo}页&nbsp;|&nbsp;
	                                    共<s:property value="pageEcaObj.totalPage"/>页&nbsp;|&nbsp;
	                                    共${pageEcaObj.totalRecord}条&nbsp;&nbsp;转至&nbsp;
	    			<select onchange="changePage(this.value)" id="pageNo" name="pageNo">
	    				<s:iterator value="pageEcaObj.listNum" id="msgid" status="st">
	    					<option value="<s:property value="pageEcaObj.listNum[#st.index]"/>"><s:property value="pageEcaObj.listNum[#st.index]"/></option>
	    				</s:iterator>
	    			</select>&nbsp;&nbsp;
              </td>
            </tr>
  
        </s:if>
     	<s:else>
			<tr>
				<td height="29" align="left" background="images/lm1_bg.jpg" class="STYLE15" >
				本日消费合计：￥
						<s:if test="#request.dangtianMoney != null && #request.dangtianMoney !=0">
              					<s:property value="#request.dangtianMoney"/>
              			</s:if>
              			<s:else>0.00</s:else>
				</td>
	            <td height="29" colspan="8" align="right" background="images/lm1_bg.jpg" >
				 	首页&nbsp;上一页&nbsp;下一页&nbsp;末页           
	              	&nbsp;&nbsp;第1页&nbsp;|&nbsp;共1页&nbsp;|&nbsp;&nbsp;
	    		</td>
	    		    		
	        </tr>
		</s:else>
  </s:if>
  <s:else>
		<tr>
		     <td height="29" colspan="5" align="right" background="images/lm1_bg.jpg" >
				<p style="color: red;font-size: 12px;text-align: center;">暂无每日消费汇总记录!</p>
		    </td>
		</tr>
	</s:else>
      <%--列表分页展示结束 --%>
            
            <tr>
              <td height="25" colspan="9" align="right" class="STYLE15">&nbsp;</td>
            </tr>
          </table>
          
          
          </td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="8">&nbsp;</td>
  </tr>
</table>
</body>
</html>
